package com.feinno.urcs.group.interop.entity;

/**
 * @author Li.Hongbo <lihongbo@feinno.com>
 */
public class DataValidateGroupBaseInfo implements DataValidatePoolInterface {

	private int groupId;
	private int groupLogicalPool;
	private String conversationId;
	private int groupType;

	public String getCreateMobileNo() {
		return createMobileNo;
	}

	public void setCreateMobileNo(String createMobileNo) {
		this.createMobileNo = createMobileNo;
	}

	private String createMobileNo;
	private String superAdminMobile;  // superAdmin 字段根本就无规律.. 只能通过其他方式获取群主.


	public DataValidateGroupBaseInfo(int groupId, int groupLogicalPool, String conversationId, int groupType) {
		this.groupId = groupId;
		this.groupLogicalPool = groupLogicalPool;
		this.conversationId = conversationId;
		this.groupType = groupType;
//		if (superAdmin != null) {
//			//sip:560049132@femoo.amigo.bjmcc.net;p=6311
//			int start = superAdmin.indexOf(":")+1;
//			int end = superAdmin.indexOf("@");
//			String tmp = superAdmin.substring(start, end);
////			superAdminSid = Integer.parseInt(tmp);
//		}
	}

	public DataValidateGroupBaseInfo(int groupId, int groupLogicalPool) {
		this.groupId = groupId;
		this.groupLogicalPool = groupLogicalPool;
//		if (superAdmin != null) {
//			//sip:560049132@femoo.amigo.bjmcc.net;p=6311
//			int start = superAdmin.indexOf(":")+1;
//			int end = superAdmin.indexOf("@");
//			String tmp = superAdmin.substring(start, end);
//			superAdminSid = Integer.parseInt(tmp);
//		}
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public int getGroupLogicalPool() {
		return groupLogicalPool;
	}

	public void setGroupLogicalPool(int groupLogicalPool) {
		this.groupLogicalPool = groupLogicalPool;
	}

	public String getConversationId() {
		return conversationId;
	}

	public void setConversationId(String conversationId) {
		this.conversationId = conversationId;
	}

	@Override
	public int getLogicPool() {
		return groupLogicalPool;
	}

	public int getGroupType() {
		return groupType;
	}

	public void setGroupType(int groupType) {
		this.groupType = groupType;
	}

	public String getSuperAdminMobile() {
		return superAdminMobile;
	}

	public void setSuperAdminMobile(String superAdminMobile) {
		this.superAdminMobile = superAdminMobile;
	}


}
